package com.huaao.micropolice.core.service.alert.Impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huaao.micropolice.core.common.page.Parameter;
import com.huaao.micropolice.core.model.alert.AuditRecord;
import com.huaao.micropolice.core.repository.alert.AuditRecordDao;
import com.huaao.micropolice.core.service.alert.AuditRecordService;

@Service
public class AuditRecordServiceImpl implements AuditRecordService {
	@Autowired
	AuditRecordDao dao;
	@Override
	public List<AuditRecord> findAuditRecordListToalertId(String alertId) {
		List<Parameter> params=new ArrayList<Parameter>();
		Parameter parameter=new Parameter();
		parameter.field="fkcolumnid";
		parameter.ops="and";
		parameter.value=alertId;
		parameter.sign="eq";
		params.add(parameter);
		return dao.findAudiRecordListToAlertid(params);
	}

}
